<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class UserStorePlan extends Model
{
	use HasDateTimeFormatter;

    protected $table = 'user_store_plans';

    protected $fillable = [
        'user_id',
        'firm_profession_id',
        'exp_type',
        'is_store',
        'plan_time',
        'city',
        'budget_amount',
    ];

    protected $attributes = [
      'status' => 1
    ];


    public function user()
    {
        return $this->belongsTo(User::class,'user_id');
    }

    public function profession()
    {
        return $this->belongsTo(FirmProfession::class,'firm_profession_id');
    }
}
